package cn.qp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author qipan
 * @date 2020/01/11 12:48
 */
@Controller
public class SpringController {
    @GetMapping("/index")
    public String show(Model model) {
        model.addAttribute("name","张三");
        return "index";
    }
}
